class CreateEventsTags < ActiveRecord::Migration
  def up
      create_table :events_tags, :id => false do |t|
          t.references :event
          t.references :tag
      end
      add_index :events_tags, [:event_id, :tag_id]
      add_index :events_tags, [:tag_id, :event_id]
  end

  def down
      drop_table :events_tags
  end
end
